﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.Infra.Common;
using Sinacor.Infra.UI.Common;
using Sinacor.UI.Bovespa.Ordens.Model;
using System.ComponentModel;
using Sinacor.UI.Bovespa.Ordens.Communication.Bovespa.Ordens.Negocio;


namespace Sinacor.UI.Bovespa.Ordens.Communication.Translator
{
    class TranslatorConsultarNegocioLoteDigitacaoRequest
{

        public ConsultarNegocioLoteDigitacaoRequest Translate(Model.Parameter.ConsultarNegocioLoteDigitacao from)
        {
            ConsultarNegocioLoteDigitacaoRequest to = new ConsultarNegocioLoteDigitacaoRequest();
            to.NumeroConjunto = from.NumeroConjunto;
            to.DataPregao = from.DataPregao;
            return to;
       }

        public  List<ConsultarNegocioLoteDigitacaoRequest> Translate(List<Sinacor.UI.Bovespa.Ordens.Model.Parameter.ConsultarNegocioLoteDigitacao> pConsultarNegocioLote)
        {
            List<ConsultarNegocioLoteDigitacaoRequest> to = new List<ConsultarNegocioLoteDigitacaoRequest>(); 
            foreach (Model.Parameter.ConsultarNegocioLoteDigitacao pitem  in pConsultarNegocioLote ) 
            {
                to.Add(Translate(pitem)); 
            }
            return to; 
        }
}
}
